<template>
	<el-config-provider :locale="locale">
		<router-view />
	</el-config-provider>
</template>
<script lang="ts" setup>
	import { computed } from 'vue';
	import zh from 'element-plus/es/locale/lang/zh-cn';
	import en from 'element-plus/es/locale/lang/en';
	import store from './store';
	const mapLang = {
		zh,
		en,
	};
	let locale = computed(() => {
		return mapLang[store.state.lang.lang];
	});
</script>
